/*
 * @Author: fengYM feng25321@163.com
 * @Date: 2023-10-09 10:11:51
 * @LastEditors: fengYM feng25321@163.com
 * @LastEditTime: 2023-10-13 10:39:19
 * @Description:首页和资讯api
 */
import { apiRequest } from "../utils/request";
//首页
export function selectBannerLst(data: any): Promise<HomeTypes.homeBanner> {
  return apiRequest({
    url: `/selectBannerLst.do`,
    method: "POST",
    data,
  });
}
// 资讯列表
export function selectInfoLst(data: any): Promise<HomeTypes.newsList> {
  return apiRequest({
    url: `/selectInfoLst.do`,
    method: "POST",
    data,
  });
}

// 我的推广（朵朵）
export function selectTeamUserInfo(data: any): Promise<HomeTypes.duoduoInfo> {
  return apiRequest({
    url: `/selectTeamUserInfo.do`,
    method: "POST",
    data,
  });
}

// 开通进货
export function updateUserFlg(data: any): Promise<HomeTypes.duoduoInfo> {
  return apiRequest({
    url: `/updateUserFlg.do`,
    method: "POST",
    data,
  });
}
